package com.tinem.platform.service.message.entity;

import io.swagger.annotations.ApiModel;
import lombok.*;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * @program: platform
 * @description: acl 控制
 * @author: fengzhihao
 * @date: 2021-12-7
 **/
@Data
@Entity
@ToString
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
@Table(name="mqtt_acl")
@ApiModel("后台菜单表")
public class MqttAcl {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id",nullable=false)
    Integer id;
    @Column(name = "allow",nullable=true)
    Integer allow;
    @Column(name = "ipaddr",nullable=true)
    String ipaddr;
    @Column(name = "username",nullable=true)
    String username;
    @Column(name = "clientid",nullable=true)
    String clientid;
    @Column(name = "access",nullable=false)
    Integer access;
    @Column(name = "topic",nullable=false)
    String topic;
}
